// @include "../../../scripts/spket.js"

api.auth = {
	login : function(params, req, res) {
		var admin = app.config.admin;

		if (params.name !== admin.name
				|| params.password !== admin.password) {
			return false;
		}

		req.session.setAttribute("user.role", "admin");
		return true;
	}
}
